package com.mashibing.service.impl;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.remote.DriverUserClient;
import com.mashibing.internalcommon.request.DriverUserWorkStatus;
import com.mashibing.service.DriverUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DriverUserServiceImpl implements DriverUserService {

    @Autowired
    private DriverUserClient driverUserClient;

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Override
    public ResponseResult updateStatus(DriverUserWorkStatus driverUserWorkStatus) {
        return driverUserClient.updateStatus(driverUserWorkStatus);
    }

    @Override
    public ResponseResult getDriverCarBindingRelationship(String driverPhone) {
        return driverUserClient.getDriverCarRelationShip(driverPhone);
    }


}
